<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="box">
    <div class="frist">个人中心
      <div class="two">
        <ul>
          <li>头像</li>
          <li>名称</li>
          <li>购物车</li>
        </ul>
      </div>
    </div>
  </div>

  <style lang="less">
    .frist {
      border: 1px solid #000;
    }
    .frist:hover {
      border: 1px solid #fff;
    }
    .two {
      border: 1px solid #000;
      opacity: 0;
    }
  </style>
</body>
</html>